//
//  HttpUtil.h
//  gdemm
//
//  Created by yongwu on 15/12/10.
//  Copyright © 2015年 goldensoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ASIHTTPRequest.h>
#import "ASIFormDataRequest.h"
@interface HttpUtil : NSObject

+(NSString*)buildUrl:(NSString*)url WithParams:(NSMutableDictionary*)dict;
+(NSData*)httpRequestSyncWithUrl:(NSString*)url andParams:(NSMutableDictionary*)dict;
+(BOOL)downloadTofileWithUrl:(NSString *)url withFileName:(NSString *)fileName;
+ (BOOL)downloadPoliciesTofileWithUrl:(NSString *)url withFileName:(NSString *)fileName;
+ (NSDictionary *)downloadToMemory:(NSString *)url;
+ (NSDictionary *)httpGet:(NSString *)url;
/*post请求*/
+ (NSDictionary *)postWithUrl:(NSString *)url withDict:(NSDictionary *)dict withType:(NSString *)type;
@end
